﻿#define _CRT_SECURE_NO_WARNINGS //找单身狗
#include<stdio.h>
int main()
{
	int arr[] = { 1,2,3,1,2,3,4,5,5,6,7,7 };
	int ret = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < ret; i++)
	{
		for (int j = i; j < ret - 1; j++)
		{
			if (arr[i] == arr[j + 1])
			{
				arr[i] = 0;
				arr[j + 1] = 0;
				break;
			}
			if (j == ret - 2 && arr[i] != 0)
			{
				printf("%d ", arr[i]);
			}
		}

	}
	return 0;
}